package com.chengqj.userserverprovider.constants;

public enum ResponseCodeEnum {
    SUCCESS(200,"成功"),
    ERROR(500,"失败"),
    TOKEN_ERROR(401,"token校验错误");

    private final int code;
    private final String msg;

    ResponseCodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
